const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  devServer: {
    proxy: {
      '/vv': {
        target: 'https://api-v2.chuangkit.com',
        changeOrigin: true,
        pathRewrite: {
          '^/vv': ''
        }
      },
      '/pub': {
        target: 'https://pub-cdn-oss.chuangkit.com',
        changeOrigin: true,
        pathRewrite: {
          '^/pub': ''
        }
      },
      '/api': {
        target: 'https://api.chuangkit.com',
        changeOrigin: true,
        pathRewrite: {
          '^/api': ''
        }
      },
    }
  },
  productionSourceMap: false
})
